Platform Explorer / Nuxeo Platform 2021.24

Contribution org.nuxeo.search.ui.actions--actions

This contribution is part of XML component org.nuxeo.search.ui.actions inside nuxeo-search-ui-2021.24.3.jar /OSGI-INF/search-actions-contrib.xml

Extension Point

Extension point actions of component ActionService.

Registration Order

45
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <action id="search" label="label.main.tab.search" link="search" order="50" type="template">
          <category>MAIN_TABS</category>
          <properties>
            <property name="template">/search/incl/action/search_main_tab_action_template.xhtml</property>
          </properties>
        </action>
  • <action icon="" id="saveSearch" label="command.search.save" order="0" type="fancybox">
          <category>SEARCH_RESULTS_ACTIONS</category>
          <properties>
            <property name="include">/search/incl/save_search_box.xhtml</property>
            <property name="autoDimensions">true</property>
            <property name="modal">true</property>
            <property name="scrolling">auto</property>
            <property name="ajaxSupport">true</property>
          </properties>
          <filter-id>notNxqlSearchSelected</filter-id>
          <filter-id>canSaveSearch</filter-id>
          <filter-id>not_transient_user</filter-id>
        </action>
  • <action id="submitSearch" label="label.search.filter" link="#{searchUIActions.refreshAndRewind()}" order="10">
          <category>SEARCH_FILTER_ACTIONS</category>
          <properties>
            <property name="ajaxSupport">true</property>
            <property name="ajaxReRender">
              searchPanelLeft searchPanelRight
            </property>
            <property name="styleClass">primary</property>
          </properties>
        </action>
  • <action id="clearSearch" immediate="true" label="label.search.clear" link="#{searchUIActions.clearSearch()}" order="20">
          <category>SEARCH_FILTER_ACTIONS</category>
          <properties>
            <property name="ajaxSupport">true</property>
            <property name="ajaxReRender">
              searchPanelLeft searchPanelRight
            </property>
          </properties>
        </action>
  • <action id="AllSavedSearches" label="label.home.all.searches" link="/search/incl/all_saved_searches.xhtml" order="-10" type="home_rest_document_link">
          <category>SavedSearches_sub_tab</category>
          <filter-id>not_anonymous</filter-id>
          <filter-id>not_transient_user</filter-id>
        </action>
  • <action confirm="if( !confirmDeleteDocumentsForever() ) return false;" help="command.deleteDocs.help" icon="" id="savedSearchesCurrentSelectionDelete" label="command.trashDocs" link="#{deleteActions.purgeSelection('SAVED_SEARCHES_CURRENT_SELECTION')}">
          <category>SAVED_SEARCHES_CURRENT_SELECTION_LIST</category>
          <filter id="canDeleteSavedSearches">
            <rule grant="true">
              <condition>#{deleteActions.getCanDelete('SAVED_SEARCHES_CURRENT_SELECTION')}</condition>
            </rule>
          </filter>
        </action>
  • <action id="TAB_MY_SUBSCRIPTIONS">
          <filter-id>denyForDefaultSearch</filter-id>
        </action>
  • <action id="TAB_MANAGE_SUBSCRIPTIONS">
          <filter-id>denyForDefaultSearch</filter-id>
        </action>
  • <action id="TAB_RELATIONS">
          <filter-id>denyForDefaultSearch</filter-id>
        </action>
  • <action id="defaultSearchContentView" order="0">
          <category>SEARCH_CONTENT_VIEWS</category>
          <properties>
            <property name="contentViewName">default_search</property>
          </properties>
        </action>
  • <action id="simpleSearchContentView" order="100">
          <category>SEARCH_CONTENT_VIEWS</category>
          <properties>
            <property name="contentViewName">simple_search</property>
          </properties>
        </action>
  • <action id="nxqlSearchContentView" order="200">
          <category>SEARCH_CONTENT_VIEWS</category>
          <properties>
            <property name="contentViewName">nxql_search</property>
          </properties>
        </action>
  • <action id="simple_search_box" order="1" type="template">
          <category>SEARCH_ACTIONS</category>
          <filter-id>isSearchEnabled</filter-id>
          <properties>
            <property name="template">/search/incl/search_box.xhtml</property>
          </properties>
        </action>

XML Source

<extension point="actions" target="org.nuxeo.ecm.platform.actions.ActionService">

    <!-- Main tab actions -->

    <action id="search" label="label.main.tab.search" link="search" order="50" type="template">
      <category>MAIN_TABS</category>
      <properties>
        <property name="template">/search/incl/action/search_main_tab_action_template.xhtml</property>
      </properties>
    </action>

    <!-- End of Main tab actions -->

    <!-- Search actions -->

    <action icon="" id="saveSearch" label="command.search.save" order="0" type="fancybox">
      <category>SEARCH_RESULTS_ACTIONS</category>
      <properties>
        <property name="include">/search/incl/save_search_box.xhtml</property>
        <property name="autoDimensions">true</property>
        <property name="modal">true</property>
        <property name="scrolling">auto</property>
        <property name="ajaxSupport">true</property>
      </properties>
      <filter-id>notNxqlSearchSelected</filter-id>
      <filter-id>canSaveSearch</filter-id>
      <filter-id>not_transient_user</filter-id>
    </action>

    <action id="submitSearch" label="label.search.filter" link="#{searchUIActions.refreshAndRewind()}" order="10">
      <category>SEARCH_FILTER_ACTIONS</category>
      <properties>
        <property name="ajaxSupport">true</property>
        <property name="ajaxReRender">
          searchPanelLeft searchPanelRight
        </property>
        <property name="styleClass">primary</property>
      </properties>
    </action>

    <action id="clearSearch" immediate="true" label="label.search.clear" link="#{searchUIActions.clearSearch()}" order="20">
      <category>SEARCH_FILTER_ACTIONS</category>
      <properties>
        <property name="ajaxSupport">true</property>
        <property name="ajaxReRender">
          searchPanelLeft searchPanelRight
        </property>
      </properties>
    </action>

    <!-- End of Search actions -->

    <!-- Home Searches tab actions -->

    <action id="AllSavedSearches" label="label.home.all.searches" link="/search/incl/all_saved_searches.xhtml" order="-10" type="home_rest_document_link">
      <category>SavedSearches_sub_tab</category>
      <filter-id>not_anonymous</filter-id>
      <filter-id>not_transient_user</filter-id>
    </action>

    <action confirm="if( !confirmDeleteDocumentsForever() ) return false;" help="command.deleteDocs.help" icon="" id="savedSearchesCurrentSelectionDelete" label="command.trashDocs" link="#{deleteActions.purgeSelection('SAVED_SEARCHES_CURRENT_SELECTION')}">
      <category>SAVED_SEARCHES_CURRENT_SELECTION_LIST</category>
      <filter id="canDeleteSavedSearches">
        <rule grant="true">
          <condition>#{deleteActions.getCanDelete('SAVED_SEARCHES_CURRENT_SELECTION')}</condition>
        </rule>
      </filter>
    </action>

    <action id="TAB_MY_SUBSCRIPTIONS">
      <filter-id>denyForDefaultSearch</filter-id>
    </action>

    <action id="TAB_MANAGE_SUBSCRIPTIONS">
      <filter-id>denyForDefaultSearch</filter-id>
    </action>

    <action id="TAB_RELATIONS">
      <filter-id>denyForDefaultSearch</filter-id>
    </action>

    <!-- End of Home Searches tab actions -->

    <!-- Search content views -->

    <action id="defaultSearchContentView" order="0">
      <category>SEARCH_CONTENT_VIEWS</category>
      <properties>
        <property name="contentViewName">default_search</property>
      </properties>
    </action>

    <action id="simpleSearchContentView" order="100">
      <category>SEARCH_CONTENT_VIEWS</category>
      <properties>
        <property name="contentViewName">simple_search</property>
      </properties>
    </action>

    <action id="nxqlSearchContentView" order="200">
      <category>SEARCH_CONTENT_VIEWS</category>
      <properties>
        <property name="contentViewName">nxql_search</property>
      </properties>
    </action>

    <!-- End of Search content views -->

    <!-- header actions -->

    <action id="simple_search_box" order="1" type="template">
      <category>SEARCH_ACTIONS</category>
      <filter-id>isSearchEnabled</filter-id>
      <properties>
        <property name="template">/search/incl/search_box.xhtml</property>
      </properties>
    </action>

    <!-- End of header actions -->

  </extension>